home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
W95 Shareware Collection
/
W95 Collection - Windows 95 Shareware (LCDCAN).iso
/
win95
/
utils
/
chief200
/
sysini.chf
< prev
next >
Wrap
Text File
|
1995-09-15
|
1KB
|
36 lines
REM --- Sample BATCH FILE for multiple DEVICE lines in SYSTEM.INI
REM --- NOTE: this only works with DEVICE lines in the [386enh] section
REM --- of the SYSTEM.INI file. Do not try it elsewhere!
REM --- First copy your SYSTEM.INI file to the TEMP directory
REM --- The "##" on the first "WRITEINI" line generates a comment
REM --- in the INI file
REM --- first make a copy of the SYSTEM.INI file to work on
REM --- do NOT work on the original of your SYSTEM.INI
COPY $WINDIR\SYSTEM.INI $TEMPDIR
REM --- check if copy operation succeeded
IF ERRORCODE 0 GOTO CONTINUE
REM --- if we get here the copy operation failed
SAY I could not copy the file!
EXIT
:CONTINUE
WRITEINI $TEMPDIR\SYSTEM.INI;386enh;device;Chief1.386 ## entry made by Chief Pro 2.0
IF NOT-ERRORCODE 0 SAY I could not write the entry
WRITEINI $TEMPDIR\SYSTEM.INI;386enh;device;Chief2.386
IF NOT-ERRORCODE 0 SAY I could not write the entry
WRITEINI $TEMPDIR\SYSTEM.INI;386enh;device;Chief3.386
IF NOT-ERRORCODE 0 SAY I could not write the entry
WRITEINI $TEMPDIR\SYSTEM.INI;386enh;device;Chief4.386
WRITEINI $TEMPDIR\SYSTEM.INI;386enh;device;Chief5.386
EXIT